package com.gandong8.trace.tool.config.redis.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 jedis.host=localhost
 jedis.port=6379
 jedis.password=
 jedis.max-idle=32
 jedis.min-idle=8
 jedis.max-total=32
 jedis.max-wait-millis=5000
 jedis.test-on-borrow=true
 jedis.test-on-return=true
 jedis.test-while-idle=true
 jedis.timeout=1000
 */
@ConfigurationProperties(prefix = "jedis")
@Data
public class JedisProperties {
    private String host;
    private Integer port = 6379;
    private String password;
    private Integer maxTotal = 8;
    private Integer maxIdle = 8;
    private Integer minIdle = 0;
    private Integer timeout = 3000;
    private Long maxWaitMillis = 5000L;
    private Boolean testOnBorrow = true;
    private Boolean testOnReturn = true;
    private Boolean testWhileIdle = true;
}
